<template>
  <div id="app">
    <keep-alive include="ccchat">
      <router-view :key="key"/>
    </keep-alive>
  </div>
</template>

<script>
export default {
  name: 'App',
  computed: {
    key() {
      if (this.$route.matched.length === 1) {
        return this.$route.fullPath
      }
    },
  },
};
</script>
